package com.example.crm.service.impl;

import com.example.crm.entity.Right;
import com.example.crm.mapper.RightMapper;
import com.example.crm.service.IRightService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zz
 * @since 2024-06-06
 */
@Service
public class RightServiceImpl extends ServiceImpl<RightMapper, Right> implements IRightService {
    @Resource
    RightMapper rightMapper;

    @Override
    public List<Right> selectByRoleId(Integer roleId) {
        return rightMapper.selectByRoleId(roleId);
    }
}
